package com.wry.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import lombok.Data;

/**
 *<h1> 订单表 <h1>
 *
 * @author 魏如元
 * @since 2022/10/14
 */
@Data
@TableName(value = "w_order")
public class WOrder implements Serializable {
    @TableId(value = "id", type = IdType.INPUT)
    private Integer id;

    /**
     * 订单id
     */
    @TableField(value = "order_id")
    private String orderId;

    /**
     * 购买数量
     */
    @TableField(value = "buy_num")
    private Integer buyNum;

    /**
     * 商品ID
     */
    @TableField(value = "good_id")
    private Integer goodId;

    /**
     * 用户ID
     */
    @TableField(value = "user_id")
    private Integer userId;

    /**
     * 支付状态，0：没有支付，1：已经支付
     */
    @TableField(value = "pay_status")
    private Integer payStatus;

    private static final long serialVersionUID = 1L;
}